/**
 * @doc 统一管理所有的API请求
 * @author xuqiang
 */
import $axios from '../axiosConf/axios_request'
import API from './index'

export const getEchartsChinaJson = (params)=>{
    return $axios.request('',{
        url: API.local.getEchartsChinaJson,
        method: 'get',
        data: params
    })
};
export const getEchartsProvinceJson = (provinceCode, params)=>{
    return $axios.request('',{
        url: API.local.getEchartsProvinceJson + `/${provinceCode}.json`,
        method: 'get',
        data: params
    })
};

export const getEchartsCityJson = (cityCode, params)=>{
    return $axios.request('',{
        url: API.local.getEchartsCityJson + `/${cityCode}.json`,
        method: 'get',
        data: params
    })
};
